package io.renren.modules.poschangerecord.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.poschangerecord.entity.PoschangeData;
import io.renren.modules.poschangerecord.entity.PoschangerecordtableEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.poschangerecord.entity.PreposEntity;
import io.renren.modules.poschangerecord.service.impl.PoschangerecordtableServiceImpl;
import io.renren.mqtt.MqttConfiguration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface PoschangerecordtableDao extends BaseMapper<PoschangerecordtableEntity> {

    IPage<PoschangerecordtableEntity> selectByMatid(String matid, Page<PoschangerecordtableEntity> page);

    List<String> selectByMatIdUp(String matid);

    List<PoschangerecordtableEntity> selectByMatIdUpNew(String matid);

    List<PreposEntity> getPre(String matid);

    IPage<PoschangerecordtableEntity> listselect(String mtype, Page<PoschangerecordtableEntity> page);


    int postPoschangeData(PoschangeData poschangeData);

    int insertBatch(@Param("poschangeDataList") List<PoschangeData> poschangeDataList);
}
